package net.alan.common.constants;

/**
 * 优先级类型
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/22
 */
public enum EPriorityType {
    common("普通"),urgent("紧急");

    private String name;

    private EPriorityType(String name) {
        this.name = name;
    }

    public static String getName(String name) {
        for (EPriorityType c : EPriorityType.values()) {
            if (c.getName().equals(name)) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
